﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<InfoTech.Mvc.LanTranh.MucVu.Models.SOBITICHModel>" %>
<%@ Import Namespace="InfoTech.LanTranh.MucVu.Service" %>
<div class="<%=ViewData["ruocle"] %>">
    <% 
        using (Html.BeginForm("UpdateSoBiTich", "GiaDinhCongGiao"))
        {%>
    <%:Html.ValidationSummary()%>
    <%:Html.HiddenFor(c=>c.MAGIAODAN) %>
    <%:Html.HiddenFor(c=>c.MASOBITICH) %>
    <%:Html.HiddenFor(c=>c.MABITICH) %>
    <table cellspacing="3" cellpadding="3">
        <tr>
            <td align="right" class="cellTitle" valign="middle" nowrap="nowrap">
                Sổ Xưng Tội số:
            </td>
            <td>
                <div class="editor-field">
                    <div class="editor-field">
                        <%: Html.TextBoxFor(model => model.MASO, new { style = "width: 200px", @class="text-input" })%>
                        <%: Html.ValidationMessageFor(model => model.MASO, "(*)")%>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td align="right" class="cellTitle" valign="middle">
                Ngày
            </td>
            <td>
                <div class="editor-field">
                    <table cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                <div class="editor-field">
                                    <%: Html.DropDownListFor(model => model.NGAYNHAN,GIAODANService.Get_List_Days(), new { style = "width: 140px", @class="text-input" })%>
                                    <%: Html.ValidationMessageFor(model => model.NGAYNHAN, "(*)")%>
                                </div>
                            </td>
                            <td>
                                <div class="editor-field">
                                    <%: Html.DropDownListFor(model => model.THANGNHAN,GIAODANService.Get_List_Months(), new { style = "width: 145px", @class="text-input" })%>
                                    <%: Html.ValidationMessageFor(model => model.THANGNHAN, "(*)")%>
                                </div>
                            </td>
                            <td>
                                <div class="editor-field">
                                    <%: Html.DropDownListFor(model => model.NAMNHAN,GIAODANService.Get_List_Years(), new { style = "width: 135px", @class="text-input" })%>
                                    <%: Html.ValidationMessageFor(model => model.NAMNHAN, "(*)")%>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td align="right" class="cellTitle" valign="middle">
                Tại
            </td>
            <td>
                <div class="editor-field">
                    <%: Html.TextBoxFor(model => model.DIADIEM, new { style = "width: 420px", @class="text-input" })%>
                    <%: Html.ValidationMessageFor(model => model.DIADIEM, "(*)")%>
                </div>
            </td>
        </tr>
        <tr>
            <td align="right" class="cellTitle" valign="middle" width="61">
                Linh Mục
            </td>
            <td>
                <table>
                    <tr>
                        <td>
                            <div class="editor-field">
                                <%: Html.HiddenFor(model => model.MALINHMUC)%>
                                <%: Html.TextBoxFor(model => model.TENLINHMUC, new { style = "width: 420px", @class = "text-input" })%>
                                <%: Html.ValidationMessageFor(model => model.TENLINHMUC, "(*)")%>
                            </div>
                        </td>
                        <td>
                            <img src="<%=Html.AreaImagesPath("AdminCP")%>search.png" style="cursor: pointer"
                                onclick="javascript:TimLinhMuc('<%=ViewData["ruocle"]%>');" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
         <tr>
            <td align="right" class="cellTitle" valign="middle">
                Không Lưu Sổ
            </td>
            <td>
                <%:Html.CheckBoxFor(c=>c.LUUSO) %>
            </td>
        </tr>
        <tr>
            <td class="lineRow" colspan="2">
            </td>
        </tr>
        <tr>
            <td align="right" class="cellTitle" valign="middle">
            </td>
            <td>
                <input type="submit" value="Cập nhật" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" />
                <input type="button" value="In chứng nhận" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
                    onclick="javascript:myPopup('/Reports/BiTich/ChungNhanBiTich.aspx?type=ruocle&id=<%=Model.MAGIAODAN %>', 'RuaToi','820','620','30','30')" />
            </td>
        </tr>
    </table>
    <%
        }%>
</div>
